/*
 * @Author: malei
 * @Date: 2021-06-16 16:55:02
 * @LastEditors: malei
 * @LastEditTime: 2021-06-16 19:07:09
 */

#include "external_video_capturer_module.h"

ExternalVideoCapturerModule::ExternalVideoCapturerModule() {}

void ExternalVideoCapturerModule::OnExternalVideoCaptured(const uint8_t *data, unsigned int len, const VideoCaptureCapability &cb, int64_t ntpTimestamp)
{
    
    uint8_t* nonconstData = const_cast<uint8_t*> (data);
    VideoCaptureImpl::IncomingFrame(nonconstData, len, cb, ntpTimestamp);
}

int32_t ExternalVideoCapturerModule::StartCapture(const VideoCaptureCapability &capability)
{
    return 0;
}

int32_t ExternalVideoCapturerModule::StopCapture()
{
    return 0;
}

bool ExternalVideoCapturerModule::CaptureStarted()
{
    return 1;
}

int32_t ExternalVideoCapturerModule::CaptureSettings(VideoCaptureCapability &settings)
{
    return 0;
}

ExternalVideoCapturerModule::~ExternalVideoCapturerModule()
{
}
